package edu.bbu.bibliospring.common.dto;


import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class AuthorDto extends DataTransferObject {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String firstName;
    private String lastName;

    public AuthorDto() {super(AuthorDto.class.getName());}

    public AuthorDto(String modelClass) {super(modelClass);}

    public Long getId () {return this.id;}

    public void setId(Long id) {this.id = id;}

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    @Override
    public String toString() {
        return "AuthorDto [id=" + id + ", firstName=" + firstName
                + ", lastName=" + lastName + "]";
    }
}
